var app = getApp();
var WxParse = require('../wxParse/wxParse.js');

Page({
  data: {
    pinji_list: {}
  },


  onLoad: function (options) {
    var feiji_id = options.feiji_id;
    this.pinji_list(feiji_id);

  },

  pinji_list: function (feiji_id) { //拼机列表
    var that = this;

    wx.request({
      url: app.api.kzdsurl+'/FeijiUser/feiji_xq',
      method: 'get',
      data: {
        feiji_id: feiji_id
      },
      header: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      success: function (res) {
        var content = res.data.data.content;          
        var article = content;
        console.log(article);
         WxParse.wxParse('article', 'html', article, that, 5);
        
      }
    })
  },
  onShareAppMessage: function () {
    return {
      title: '宠物美容学校',
      path: '/pages/index/index',
      success: function(res) {
        // 分享成功
      },
      fail: function(res) {
        // 分享失败
      }
    }
  }



});